class Theme(object):
    def __init__(self, id, backgroundColor, textColor):
        self.id = int(id)
        self.backgroundColor = str(backgroundColor)
        self.textColor = str(textColor)
        super(Theme, self).__init__()

    def __repr__(self):
        return "<Theme Object>\n"+"id:" + str(self.id) + "\n" + "backgroundColor:" + str(self.backgroundColor) + "\n" + "textColor:" + str(self.textColor) + "\n"

    def toJson(self):
        return {"id": self.id, "backgroundColor": self.backgroundColor, "textColor": self.textColor}

    def toList(self):
        return [self.id, self.backgroundColor, self.textColor]


class SourcePath(object):
    def __init__(self, id, path):
        self.id = int(id)
        self.path = str(path)

    def __repr__(self):
        return "<SourcePath Object>\n" + "id:" + str(self.id) + "\n" + "path:" + str(self.path) + '\n'

    def toJson(self):
        return {"id": self.id, "path": self.path}

    def toList(self):
        return [self.id, self.path]
